#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(void)
{
int secret = rand();
int guess = 0;
while(guess != secret)
{

	
	cout<<"Guess the Number(between 38-44.) \n";

	cin>> guess;

	if (guess < secret)
	{
	if (guess != secret)
	{
		cout<<"TRY AGAIN"<<endl;
	}

	}

	if (guess > secret)
	{
		cout<<"VERY WRONG!, press any key and restart, you fail"<<endl;
		system("pause");
	break;
	}
}
if(guess == secret)
{
	cout<<"You Guessed it!"<<endl;
	system("pause");
}
}